package de.wittekind.bundesjugendspiele.server.interfaces;

import java.io.IOException;
import java.rmi.Remote;
import java.util.ArrayList;
import java.util.Map;

public interface RiegenLoader extends Remote {
	/**
	 * 
	 * @param id
	 * @return Riege mit ID uId
	 * @throws IOException
	 */
	public Riege getRiege( int uId ) throws IOException;
	/**
	 * 
	 * @return 
	 * @throws IOException
	 */
	@Deprecated
	public int getRiegenAmount() throws IOException;
	public int[] getRiegenIDs() throws IOException;
	public int newRiege() throws IOException;
	public void removeRiege(int i) throws IOException;
	public Schueler[] getAllSchueler ( int jahrgang ) throws IOException;
	@Deprecated
	public Map<Schueler,Try> getLatestResults(int count, Discipline discipline) throws IOException;
	@Deprecated
	public Map<Schueler,Try> getBestResults(int count, Discipline discipline) throws IOException;
	public Map<Schueler,Try> getLatestResults(int count, Discipline discipline,int year) throws IOException;
	public Map<Schueler,Try> getBestResults(int count, Discipline discipline,int year) throws IOException;
	public int getMinJahrgang() throws IOException;
	public int getMaxJahrgang() throws IOException;
	public ArrayList<Integer> getSiegerurkunden() throws IOException;
	public ArrayList<Integer> getEhrenurkunden() throws IOException;
}